package hibernate_advanced_apply.object_inherit_mapping.two_table.mapping.source;

/**
 * @author Administrator
 * @create 2019-01-07 7:02
 * @desc 老师持久化子类
 **/

/*
只需要定义该子表专属字段属性
*/
public class Teacher extends Person{

    private int money;

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
}
